<template>
  <div class="verify-dialog">
    <h3>{{text}}</h3>
    <div class="verify-btn">
      <el-button class="think" @click="thinkAgain">再想想</el-button>
      <el-button @click="reset">{{btnText}}</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'verifyDialog',
  props: {
    text: {
      type: String,
      default: '确认退出重置？'
    },
    btnText: {
      type: String,
      default: '重置'
    }
  },
  data () {
    return {
    }
  },
  methods: {
    thinkAgain () {
      this.$emit('thinkAgain')
    },
    reset () {
      this.$emit('reset')
    }
  }
}
</script>

<style lang="scss" scoped>
.verify-dialog  {
  position: absolute;
  top: 35%;
  right: 30%;
  width: 400px;
  height: 173px;
  background: url('../assets/dialog-bg.png') no-repeat;
  padding-top: 20px;
  h3 {
    font-family: PingFang SC;
    font-weight: 800;
    font-size: 24px;
    color: #333333;
    line-height: 36px;
    text-align: center;
  }
  .verify-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .el-button {
    width: 120px;
    height: 40px;
    background: #F2F2F2;
    border-radius: 20px;
    font-size: 16px;
    box-shadow: inset 0px 5px 5px -5px #fff, inset 0px -10px 10px -8px #111;
    &.think {
      background-color: rgba(79,163,136, .6);
      border-color: #4FA388;
      color: #fff;
      margin-right: 20px;
    }
  }
}
</style>